/*
 * FileName：Constants.java 
 * <p>
 * Copyright (c) 2017-2020, <a href="http://www.webcsn.com">hermit (1154808491@qq.com)</a>.
 * <p>
 * Licensed under the GNU General Public License, Version 3 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/gpl-3.0.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package com.smart.primary.common.common;

import java.util.Arrays;
import java.util.List;

/**
 * @author : hermit
 */

public class Constants {

	/**
	 * 图片资源状态：0：未引用	1：已被引用
	 */
	public static final Integer IMG_FLAG0 = 0;
	public static final Integer IMG_FLAG1 = 1;
	public static final String SYSTEM_NAME = "SmartAdmin";
	public static final String SYSTEM_VERSION = "1.0.0";
	public static final String SYSTEM_UPDATE_TIME = "2018-07-06";

	/**
	 * Token加密密钥
	 */
	public static final String TOKEN_KEY = "_GUyFjkigkjgUKgkjg_h$hjh^JKGGF4542";



	/********************************* 操作信息常量 ***********************************/
	/**
	 * 成功提示
	 **/
	public static final String MSG_SUCCESS = "信息操作成功!";

	/**
	 * 保存成功提示
	 **/
	public static final String MSG_SUCCESS_SAVE = "信息添加成功!";

	/**
	 * 修改成功提示
	 **/
	public static final String MSG_SUCCESS_UPDATE = "信息修改成功!";

	/**
	 * 删除成功提示
	 **/
	public static final String MSG_SUCCESS_DELETE = "信息删除成功!";

	/**
	 * 操作失败提示
	 **/
	public static final String MSG_ERROR = "服务器异常，操作失败!";

	/**
	 * 删除失败提示
	 **/
	public static final String MSG_ERROR_DELETE = "该节点含有子节点";

	/**
	 * 菜单类型-click
	 **/
	public static final String MENU_CLICK = "click";
	/**
	 * 菜单类型-view
	 **/
	public static final String MENU_VIEW = "view";
	/**
	 * 菜单类型-scancode_push
	 **/
	public static final String MENU_SCANCODE_PUSH = "scancode_push";
	/**
	 * 菜单类型-scancode_waitmsg
	 **/
	public static final String MENU_SCANCODE_WAITMSG = "scancode_waitmsg";
	/**
	 * 菜单类型-pic_sysphoto
	 **/
	public static final String MENU_PIC_SYSPHOTO = "pic_sysphoto";
	/**
	 * 菜单类型-pic_photo_or_album
	 **/
	public static final String MENU_PIC_PHOTO_OR_ALBUM = "pic_photo_or_album";
	/**
	 * 菜单类型-pic_weixin
	 **/
	public static final String MENU_PIC_WEIXIN = "pic_weixin";
	/**
	 * 菜单类型-pic_location_selectn
	 **/
	public static final String MENU_LOCATION_SELECT = "location_select";
	/**
	 * 菜单类型-miniprogram
	 **/
	public static final String MENU_MINIPROGRAM = "miniprogram";
	/**
	 * 菜单类型-需要设置key的菜单类型
	 **/
	public static final List<String> MENU_NEED_KEY =  Arrays.asList("click", "scancode_push", "scancode_waitmsg", "pic_sysphoto", "pic_photo_or_album", "pic_weixin", "location_select");
	/**
	 * 图文类型-1单图文2多图
	 **/
	public static final Integer MULT_TYPE_SINGLE =  1;

	/**
	 * 图文类型-1单图文2多图
	 **/
	public static final Integer MULT_TYPE_MORE =  2;


	/********** 以下为系统用常量 *********************/

	/********* 状态： 0禁用 1启用 *************/
	public static final int STATE_ENABLE = 1;

	public static final int STATE_DISABLE = 0;

	public static final int LEAF_YES = 1;

	public static final int LEAF_NO = 0;

	/********* 提示 *************/
	public static final String ERROR_TIPS_SAVE = "信息添加失败!";

	public static final String ERROR_TIPS_UPDATE = "信息修改失败!";

	public static final String ERROR_TIPS_DELETE = "信息删除失败!";

	/********* 登录失败提示 *************/
	public static final String USER_LOGIN_NAMEORPWDERRO = "用户名或密码错误!";

	public static final String USER_LOGIN_DISABLED = "用户被禁用，请联系管理员!";

	public static final String USER_LOGIN_LOCKING = "用户被锁定，请联系管理员!";

	/**
	 * 用户信息 Session名称
	 */
	public static final String SESSION_USER = "session_user";

	/**
	 * 用户信息 Session名称
	 */
	public static final String COOKIE_USER = "cookie_user";

	/**
	 * 登录验证码
	 */
	public static final String SESSION_VERIFY_CODE = "verificationCode";

	/**
	 * 登录邮箱验证码
	 */
	public static final String SESSION_MAIL_CODE = "mailCode";

	/**
	 * 用户当前微信账号 Session名称
	 */
	public static final String SESSION_ACCOUNT = "session_account";

	/**
	 * 用户默认密码
	 */
	public static final String USER_DEFAULT_PASSWORD = "123321";

	/**
	 * 菜单列表
	 */
	public static final String SESSION_MENU_LIST = "menuList";

	public static final int PAGE_SIZE_MAX = 9999;

	public static final String ROOT_NODE_ID = "0";

	public static final String ROOT_NODE_NAME = "根节点";

	/**
	 * 常量-客户org
	 */
	public static final String CUSTOMER_ORGNO = "001001";


	/**
	 * 常量-客户角色
	 */
	public static final String CUSTOMER_ROLE_ID = "c0f7d4e9bc534ac9a3b9d516b1b58f92";

}
